package com.jkai.springbootdemo1;

import java.util.HashMap;
import java.util.Map;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.netflix.discovery.converters.Auto;

@RequestMapping
@Controller
public class UserController {
	private final Logger logger = Logger.getLogger(UserController.class);
	@Autowired
	private UserService userService;

	@RequestMapping(method = RequestMethod.GET, value = "/tologin")
	@ResponseBody
	public Object login() {
		return userService.getUser();
	}
}